package com.laoniu.controller.sys;

import com.laoniu.biz.LogBiz;
import com.laoniu.dto.RestResult;
import com.laoniu.dto.request.LogRequestDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/log")
public class LogController {

    @Autowired
    private LogBiz logBiz;

    /**
     * 日志查询列表
     * @param dto
     * @return
     */
    @PostMapping("list")
//    @OperateLog(bizName = "日志查询", operateType = "查询日志", operateDesc = "查看系统日志")
    public RestResult list(@RequestBody LogRequestDto dto){
        return RestResult.success(logBiz.list(dto));
    }
}
